package Java攻略._3_流式操作._2_装箱流;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class _8_将字符串流转换为列表 {

    public static void main(String[] args) {

        List<String> strings = Stream.of("this", "is", "a", "list", "of", "strings")
                .collect(Collectors.toList());

        System.out.println(strings);
    }

}
